import { Inject, Injectable, Logger } from '@nestjs/common'
import { GREETER_OPTIONS } from './greeter.constants'

@Injectable()
export class GreeterService {
  private readonly logger = new Logger(GreeterService.name)

  // will be displayed in the console when the service is initialized
  constructor(@Inject(GREETER_OPTIONS) private readonly greeter: string) {
    this.logger.log(`OwOwOoWoWo ${this.greeter} is starting oWoWoOwOwO`)
  }
}
